package com.study;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Import;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;

/**
 * 商品微服务启动入口
 * http://127.0.0.1:8001/ecommerce-goods-service/doc.html
 * http://127.0.0.1:8001/ecommerce-goods-service/swagger-ui.html
 *
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableJpaAuditing
@Import(DataSourceAutoConfiguration.class) //seata
public class GoodsApplication {

    public static void main(String[] args) {
        SpringApplication.run(GoodsApplication.class,args);
    }
}
